<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>管理员页面</title>
	<link rel="stylesheet" type="text/css" href="/stylesheets/guanli01.css">
    <link rel="stylesheet" type="text/css" href="/stylesheets/guanli02.css">
    <link rel="stylesheet" type="text/css" href="/stylesheets/guanli03.css">
	<style type="text/css" media="screen">
	

</style>
</head>
<body>
	<div id="all">
		<div id="logo">
			<!-- <div id="img2"><img src="/images/u0.jpg" style="height: 100px  "></div> -->

			<div id="img"><img src="/images/logo1.png" alt=""></div>
			<div id="ming"><img src="/images/1.png" alt=""></div>
		</div>
		<div id="count">
			<div id="left">
		<div id="t"><img src="/images/gl.png" alt="">后台管理</div>
		<div id="biaoti"><ul>
				<li><a href="/shopp_updata">修改商品</a></li>
				<li ><a href="/delete_shopp">下架商品</a></li>
				<li ><a href="/add_shopp">添加商品</a></li>
				<li ><a href="/guanlihuiyuan">会员管理</a></li>
				<li ><a href="/newGoods/">订单管理</a></li>
				<li ><a href="/exam/">公告管理</a></li>
				<li><a href="/" target="_blank">安全退出</a></li>
				<li><a href="/admin/message">用户消息</a></li>
			</ul>
		</div>
</div>
	
	<div id="right">
	<h1>更新数据</h1>
	<!-- <div id="imager"><img src="/images/book.jpg" style="width: 100%; height: 100%"></div>
	<div id="root">
		<div id="img"><img src="/images/book.jpg" style="width: 800px; height: 500px"></div> -->
	<form action="shopp_update_handler" method="post" id="fom">
		<input type="hidden" name="e_id" value="<%=data[0].e_id%>">
		<table>
			
			<tr><td>商品名称：</td><td><input type="text" name="e_name"></td></tr>
    <tr><td>商品类型：</td><td><input type="text" name="e_shoppLeixing"></td></tr>
    <tr><td>价格：</td><td><input type="text" name="e_price"></td></tr>
    <tr><td>数量：</td><td><input type="number" name="e_zongnumber"></td></tr>
    <tr><td colspan="2"><input type="submit" value="确认添加" id="submit"></td></tr>
	</table>
	</form>

</div>
<script>
		var fom=document.getElementById('fom');
		// fom.b_img.value="/images/<%=data[0].b_img%>";
		fom.e_name.value="<%=data[0].e_name%>";
		fom.e_shoppLeixing.value="<%=data[0].e_shoppLeixing%>";
		fom.e_price.value="<%=data[0].e_price%>";
		fom.e_zongnumber.value="<%=data[0].e_zongnumber%>";
		
	</script>
</body>
</html>